package com.liam.design.factory;

import com.liam.design.factory.drink.Drink;
import com.liam.design.factory.drink.MilkTea;
import com.liam.design.factory.drink.Water;
import com.liam.design.factory.drinkFactory.DrinkFactory;

public class Test {

    public static void main(String[] args) {
        DrinkFactory factory = new DrinkFactory();
        Drink drink = factory.getDrink(Water.class.getName());
        drink.desc();

        drink = factory.getDrink(MilkTea.class.getName());
        drink.desc();
    }
}
